package com.huawei.hms.support.api.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.sns.internal.GetUnreadMsgResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiSnsApiImpl$11 extends PendingResultImpl<UnreadMsgCountResult, GetUnreadMsgResp> {
    HuaweiSnsApiImpl$11(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }

    public /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        return a((GetUnreadMsgResp) iMessageEntity);
    }

    public UnreadMsgCountResult a(GetUnreadMsgResp getUnreadMsgResp) {
        UnreadMsgCountResult unreadMsgCountResult = new UnreadMsgCountResult();
        unreadMsgCountResult.setStatus(Status.SUCCESS);
        unreadMsgCountResult.setUnreadMsg(getUnreadMsgResp.getUnreadMsg());
        HMSLog.i("HuaweiSnsApiImpl", "getUnreadMsgCount onCompete");
        return unreadMsgCountResult;
    }
}
